import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../views/houtai/HouLogin'
import layout from "../views/houtai/layout/HouHome"
import HouLogin from '../views/houtai/HouLogin.vue'
import APPSide from "../components/account/Side";


Vue.use(VueRouter)

const routes = [
    //后台登录页面
    {
        path: '/houLogin',
        name: 'HouLogin',
        component: login,
        children: [],
    },
    //后台管理页面
    {
        path: '/houHome',
        name: 'HouHome',
        component: layout,
        children: [
            /*系统管理*/
            {
                path:'/user/user/userAll',
                name:'用户管理',
                component: () => import('../views/houtai/acl/UserList'),
                children: []
            },
            {
                path:'/role/role/queryAll',
                name:'角色管理',
                component: () => import('../views/houtai/acl/RoleList'),
                children: []
            },
            {
                path:'/manage/manage/selectAll',
                name:'通知管理',
                component: () => import('../views/houtai/acl/MenuList'),
                children: []
            },
            // {
            //     path:'/menu/list',
            //     name:'菜单管理',
            //     component: () => import('../views/houtai/acl/MenuList'),
            //     children: []
            // },

            /*首页管理*/
            {
                path: '/index/headNav/selectAll',
                name: '头部导航',
                component: () => import('../views/houtai/HomeManagement/headManagement/HeadNavigation'),
                children: []
            },
            {
                path: '/index/banner/selectAll',
                name: '轮播管理',
                component: () => import('../views/houtai/HomeManagement/bannerpc/LunBoManagement'),
                children: []
            },
            {
                path: '/index/link/selectAll',
                name: '友情链接',
                component: () => import('../views/houtai/HomeManagement/homelink/HomeLink'),
                children: []
            },
            {
                path: '/index/BottomArticle/selectAll',
                name: '底部文章',
                component: () => import('../views/houtai/HomeManagement/bottomartic/index'),
                children: []
            },
            {
                path: '/index/article/selectAll',
                name: '文章管理',
                component: () => import('../views/houtai/HomeManagement/bottomarticdetail/detailindex'),
                children: []
            },
            {
                path: '/index/zone/selectAll',
                name: '专区管理',
                component: () => import('../views/houtai/HomeManagement/zhanqu/Zhuanindex'),
                children: []
            },
            {
                path: '/index/zoneGoods/getAllDetail',
                name: '专区课程',
                component: () => import('../views/houtai/HomeManagement/zhanqu/zhanqucourse/courseindex'),
                children: []
            },

            //    订单管理
            {
                path: '/order/order/findAllOrder',
                name: '订单查询',
                component: ()=> import('../views/houtai/order/list'),
                children: []
            },
            //  课程销量统计图
            {
                path: '/daily/create',
                name: '课程销量',
                component:()=> import('../views/houtai/statistics/create'),
                children: []
            },
            //    类别统计图
            {
                path: '/order/order/order/charts',
                name: '统计图表',
                component:()=> import('../views/houtai/statistics/chart'),
                children: []

            },

            // //课程管理
            // {
            //     path: '/course/subject',
            //     name: '课程分类',
            //     component:()=>import('../views/houtai/course/subject')
            //     ,children: []
            // },

            //商品管理
            {
                path: '/course/subject',
                name: '课程分类',
                component:()=>import('../views/houtai/course/specification')
                ,children: []
            },
            {
                path: '/goods/goods/selectgoods',
                name: '商品信息',
                component:()=>import('../views/houtai/course/goods')
                ,children: []
            },
            {
                path: '/goods/goodsType/selectAll',
                name: '商品类别',
                component:()=>import('../views/houtai/course/category')
                ,children: []
            },
            {
                path: '/goods/goodsBrand/selectAll',
                name: '商品品牌',
                component:()=>import('../views/houtai/course/brand')
                ,children: []
            },
            {
                path: '/goods/newgoods/select',
                name: '商品审核',
                component:()=>import('../views/houtai/course/newgoods')
                ,children: []
            },
            {
                path: '/goods/newgoods/audit',
                name: '商品审核记录',
                component:()=>import('../views/houtai/course/audit')
                ,children: []
            },
            {
                path: '/goods/goodsSpecification/selectAll',
                name: '商品规格',
                component:()=>import('../views/houtai/course/specification')
                ,children: []
            },
            {
                path: '/goods/goodsStorage/selectAll',
                name: '商品存储方式',
                component:()=>import('../views/houtai/course/storage')
                ,children: []
            },
            {
                path: '/course/list',
                name: '课程列表',
                component:()=>import('../views/houtai/course/courselist')
                ,children: []
            },
            {
                path: '/course/check',
                name: '课程审核',
                component:()=>import('../views/houtai/course/courseCheck')
                ,children: []
            },
            //讲师管理
            {
                path: '/system/tbBusiness/findAllBusiness',
                name: '商家信息',
                component:()=>import('../views/houtai/teacher/businessMsg')
                ,children: []
            },
            {
                path: '/system/tbBusiness/findAuditMsg',
                name: '商家入注审核',
                component:()=>import('../views/houtai/teacher/businessAudit')
                ,children: []
            },
            {
                path: '/system/audtmsg/findAllAuditMsg',
                name: '审核记录',
                component:()=>import('../views/houtai/teacher/businessRecord')
                ,children: []
            },
            {
                path: '/system/shop/findAllShop',
                name: '商铺管理',
                component:()=>import('../views/houtai/teacher/shopList')
                ,children: []
            },

            //学员管理
            {
                path: '/student/list',
                name: '学员管理',
                component: () => import('../views/houtai/student/StudentList'),
                children: []
            },

            {
                path: '/dashboard',
                name: '首页',
                component: () => import('../views/houtai/dashboard/index'),
                // 当菜单文件中没有该页面配置时，在标签栏显示的就是这里配置的标题
                meta: {title: '首页'},
                children: []
            },

        ]
    },

]

const router = new VueRouter({
    mode:'history',
    routes
})

export default router
